import request from '@/utils/request'

// 查询岗位列表
export function listFitnessAction(data) {
  return request({
    url: '/plan/getFitnessAction',
    method: 'get',
    params: data

  })
}
export function listFitnessTypeAll(data) {
  return request({
    url: '/plan/getFitnessTypeAll',
    method: 'get',
    params: data

  })
}
export function listFitnessPurposeAll(data) {
  return request({
    url: '/plan/getFitnessPurposeAll',
    method: 'get',
    params: data
  })
}
export function listFitnessEquipmentAll(data) {
  return request({
    url: '/plan/getFitnessEquipmentAll',
    method: 'get',
    params: data
  })
}
export function addFitnessAction(data) {
  return request({
    url: '/plan/addFitnessAction',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
export function insertImg(data) {
  return request({
    url: '/plan/insertImg',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
export function updateFitnessAction(data) {
  return request({
    url: '/plan/updateFitnessAction',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
export function deleteFitnessAction(data) {
  return request({
    url: '/plan/deleteFitnessAction',
    method: 'delete',
    data: data
  })
}
export function queryByTypes(data) {
  return request({
    url: '/plan/queryByTypes',
    method: 'get',
    params: data
  })
}